﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using OpenQuarters.WebQuarters.Core.Web;
using OpenQuarters.WebQuarters.MVCAreas;

namespace OpenQuarters.WebQuarters
{
    public class Global : MvcApplication
    {

        public override void RegisterCustomRoutes(System.Web.Routing.RouteCollection routes)
        {
            // Routing config for the root area
            routes.CreateArea("root", "OpenQuarters.WebQuarters.Areas.Root.Controllers",
                routes.MapRoute(null, "{controller}/{action}", new { controller = "Home", action = "Index" })
            );
        }
    }
}